package com.bjpowernode.bfactorymethod;

/*
    工厂方法
 */
public class TestFactoryMethod {
    public static void main(String[] args) {
        //创建12ProMax工厂
        Iphone12ProMaxFactory factory = new Iphone12ProMaxFactory();
        Iphone p = factory.produce();
        p.play();
    }
}
